package com.iflytek.cosmo.ocr.model.domain;

import io.swagger.annotations.ApiModel;

/**
 * @author ViviZhou
 * @create 2019-10-2019/10/15 17:05
 */
@ApiModel(value = "the response common message type")
public class OutputMessage<T> {
    /**
     * 状态码
     */
    private int code;

    /**
     * 数据对象
     */
    private T data;

    /**
     * 返回消息int
     */
    private String message;

    public OutputMessage(int code) {
        this.code = code;
    }

    public OutputMessage(T data) {
        this.data = data;
    }

    public OutputMessage(String message) {
        this.message = message;
    }

    public OutputMessage(int code, T data) {
        this.code = code;
        this.data = data;
    }

    public OutputMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public OutputMessage(T data, String message) {
        this.data = data;
        this.message = message;
    }

    public OutputMessage(int code, T data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
